package com.baor.service.impl;

import com.baor.dao.LeaveTypeDao;
import com.baor.domain.LeaveTypeVo;
import com.baor.service.LeaveTypeService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeaveTypeServiceImpl implements LeaveTypeService {

    @Autowired
    private LeaveTypeDao leaveTypeDao;

    @Override
    public AjaxResult<?> LeaveTypeList() {
        List<LeaveTypeVo> leaveTypeVos = leaveTypeDao.selectList(null);
        return AjaxResult.success(leaveTypeVos);
    }
}
